package com.example.entity.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.entity.AlgorithmTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;


@Data
@TableName("sys_masking_rule")
public class MaskingRule  {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "名称")
    @TableField("name")
    private String name;

    @Schema(description = "类型")
    @TableField("type")
    private String type;

    @Schema(description = "敏感类型id")
    @TableField("sensitive_type_id")
    private Long sensitiveTypeId;

    @Schema(description = "算法类型")
    @TableField("algorithm_type")
    private AlgorithmTypeEnum algorithmType;

    @Schema(description = "算法配置")
    @TableField("algorithm_config")
    private String algorithmConfig;

    @Schema(description = "创建人")
    @TableField("created_by")
    private String createdBy;

    @Schema(description = "创建时间")
    @TableField("created_time")
    private LocalDateTime createdTime;

    @Schema(description = "修改人")
    @TableField("updated_by")
    private String updatedBy;

    @Schema(description = "修改时间")
    @TableField("updated_time")
    private LocalDateTime updatedTime;

}
